using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Security;
namespace OpenProject.Web
{
    public class BasePage : System.Web.UI.Page 
    {
        private string _projectTitle = "";
        public string ProjectTitle
        {
            get
            {
                if (_projectTitle == "")
                {
                    _projectTitle = SiteUtilities.ProjectTitle;
                }
                return _projectTitle;
            }
        }
        private int? _userId;
        public int UserId
        {
            get
            {
                if(_userId == null)
                {
                    _userId = SiteUtilities.UserId;
                 }
                 return (int) _userId;
            }
        }
        private string _pageUrl = "";
        public string PageUrl
        {
            get
            {
                if (_pageUrl == "")
                {
                    _pageUrl = SiteUtilities.PageUrl;
                }
                return _pageUrl;
            }
        }
    }
}
